package com.woniuxy.seservice.impl;

import com.woniuxy.dao.AuthDao;
import com.woniuxy.entity.User;
import com.woniuxy.seservice.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthServiceImpl implements AuthService {

    @Autowired
    AuthDao authDao;

    @Override
    public User findUser(User user) {
        return authDao.findByUsername(user.getUsername());
    }
}
